package com.xx.eshop.service;

import java.util.List;
import java.util.Map;

import com.xx.eshop.entity.Product;

public interface ProductService {
	

	public Product findById(int id);

	public Map<String,Object> findByPage(String name, Double minPrice, Double maxPrice, Boolean onSale, int page, int rows,
			String sort, String order);

	public void save(Product product, List<String> attr_names, List<String> attr_values, List<String> images);
	
	public void update(Product product, List<String> attr_names, List<String> attr_values, List<String> images);
	
	public void delete(int product_id);

}
